cmake_minimum_required(VERSION 3.5)
project(mybin)

set(CMAKE_CXX_STANDARD 11)
#set(HOME ../)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/mybin-dir)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SRC)
include_directories(${PROJECT_SOURCE_DIR}/include)
#file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)


#add_executable(mybin ${SRC})
#set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/mybin-dir)
message("xxxxxxxx" ${SRC})
#静态连接
link_directories(${PROJECT_SOURCE_DIR}/lib)
#link_libraries(libarac.a)
add_executable(mybin ${SRC})
#动态连接
target_link_libraries(mybin myexec)
#add_library(mylib SHARED ${SRC})
